using UnityEngine;
using System;


enum SABattleContralStage
{
	COMMAND = 0,
	PETCOMMAND ,
	WAIT,
	RESULT,

	COUNT
}

public class SABattleManager : Singleton< SABattleManager > 
{
	[ HideInInspector ]
	public int contralStage = (int)SABattleContralStage.COMMAND;


	void Awake ()
	{
		mInstance = this;
		
	}

	public void changeContralStage( int s )
	{
		contralStage = s;

		switch ( s ) 
		{
			case (int)SABattleContralStage.COMMAND:
			{
				BattlePlayerCommandUIHandler.instance.Show();
			}
			break;
			case (int)SABattleContralStage.PETCOMMAND:
			{
				BattlePlayerCommandUIHandler.instance.UnShow();
			}
			break;
			case (int)SABattleContralStage.WAIT:
			{
				BattlePlayerCommandUIHandler.instance.UnShow();
			}
			break;
			case (int)SABattleContralStage.RESULT:
			{
				BattlePlayerCommandUIHandler.instance.UnShow();
			}
			break;
		}
	}

	public bool checkContralStage( int s )
	{
		return s == contralStage;
	}


	void Start()
	{
		changeContralStage( (int)SABattleContralStage.COMMAND );
	}


}

